package PTA.ch03;

import kotlin.reflect.jvm.internal.impl.types.checker.SimpleClassicTypeSystemContext;

import java.util.Scanner;

public class ex03 {
    public static void main(String[] args) {
        Scanner sc=  new Scanner(System.in);
int year  = sc.nextInt();//年
int month = sc.nextInt();//月
int date = sc.nextInt();//日
if(year>=1820&&year<=2020||month>=1&&month<=12||date>=1&&date<=31){
    if(isLeapYear(year)){
        System.out.println(year+" is a leap year");
    }



}


    }
    //判断year是否为闰年，返回boolean类型；
    public static boolean isLeapYear(int year){
if(year%4==0&&year%100!=0||year%400==0){
    return true;
}
return false;
    }
    //求出year-month-day到0001-1-1的距离天数，返回整型数
   /* public static int numOfDays(int year,int month ,int day){



    }*/
    //根据天数返回星期几，其中参数days为天数，整型数，返回星期几的英文单词
   /* public static String getWhatDay(int days){


    }*/
}
